package com.example.unisys.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.unisys.entity.Course;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Repository
public interface CourseMapper extends BaseMapper<Course> {



    List<Course> getAllCourse(@Param("start")int start, @Param("pagesize")int pagesize);


    List<Course> getValidCourse(@Param("start") int start,@Param("pagesize")int pagesize);

    Integer getValidCourseSum();


    List<Course> getMainCourseBySearch(Map<String, Object> hs1);

    List<Course> getAllRepoCourses(HashMap<String, Object> hs);

    int getRepoSum();

    Integer isPublishable(Course course);

}
